package com.itheima.health.controller;

import com.itheima.health.common.MessageConst;
import com.itheima.health.entity.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mobile")
public class MobileLoginController {
    @PostMapping("login/smsLogin")
    public Result Login(){
        return new Result(true, MessageConst.LOGIN_SUCCESS);
    }
    @PostMapping("/validateCode/send")
    public Result send(){
        return new Result(true, MessageConst.SEND_VALIDATECODE_SUCCESS);
    }
}
